Skip to content

Update remote config tutorials to use getFeatureFlagResult#16160

Merged
gustavohstrassburger merged 2 commits intomasterfrom
gustavo/ios-remote-config-getfeatureflagresult
Apr 6, 2026
Merged

Update remote config tutorials to use getFeatureFlagResult#16160
gustavohstrassburger merged 2 commits intomasterfrom
gustavo/ios-remote-config-getfeatureflagresult

Conversation

@gustavohstrassburger
Copy link
Copy Markdown
Contributor

@gustavohstrassburger gustavohstrassburger commented Apr 2, 2026

Problem

The iOS remote config tutorial was using the outdated getFeatureFlagPayload() method instead of the newer getFeatureFlagResult() method.

Changes

  • Updated tutorial documentation to use getFeatureFlagResult() API
  • Modified code example to properly access payload via result?.payload pattern
  • Updated comments to reflect the new method name

How did you test this code?

Reviewed the updated tutorial for accuracy and consistency with the new API pattern.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Apr 06, 2026 01:49PM

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

Vale prose linter → found 0 errors, 12 warnings, 0 suggestions in your markdown

Full report → Copy the linter results into an LLM to batch-fix issues.

Linter being weird? Update the rules!

contents/tutorials/android-remote-config.md — 0 errors, 3 warnings, 0 suggestions
Line Severity Message Rule
12:127 warning 'Jetpack' is a possible misspelling. PostHogBase.Spelling
72:15 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
179:4 warning Capitalize 'Feature Flags' for PostHog's product. Use 'Feature flags' for the general industry concept. PostHogBase.ProductNames
contents/tutorials/flutter-remote-config.md — 0 errors, 4 warnings, 0 suggestions
Line Severity Message Rule
119:28 warning 'Cocoapods' is a possible misspelling. PostHogBase.Spelling
139:63 warning 'Podfile' is a possible misspelling. PostHogBase.Spelling
172:15 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
328:4 warning Capitalize 'Feature Flags' for PostHog's product. Use 'Feature flags' for the general industry concept. PostHogBase.ProductNames
contents/tutorials/ios-remote-config.md — 0 errors, 3 warnings, 0 suggestions
Line Severity Message Rule
73:15 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
138:14 warning Use the Oxford comma before 'and' or 'or' in a list of three or more items. PostHogBase.OxfordComma
148:4 warning Capitalize 'Feature Flags' for PostHog's product. Use 'Feature flags' for the general industry concept. PostHogBase.ProductNames
contents/tutorials/react-native-remote-config.md — 0 errors, 2 warnings, 0 suggestions
Line Severity Message Rule
101:15 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
191:4 warning Capitalize 'Feature Flags' for PostHog's product. Use 'Feature flags' for the general industry concept. PostHogBase.ProductNames

…ayloads

- Update Android, Flutter, and React Native tutorials to use getFeatureFlagResult instead of getFeatureFlagPayload
- Update all tutorials to use valid JSON payloads instead of plain strings
- Update code examples to properly parse JSON payload objects

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@gustavohstrassburger gustavohstrassburger changed the title Update iOS remote config tutorial to use getFeatureFlagResult Update remote config tutorials to use getFeatureFlagResult Apr 6, 2026
@gustavohstrassburger gustavohstrassburger merged commit 799aca6 into master Apr 6, 2026
19 checks passed
@gustavohstrassburger gustavohstrassburger deleted the gustavo/ios-remote-config-getfeatureflagresult branch April 6, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants